﻿<UserControl x:Class="Candy.Controls.SequenceControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <UserControl.Resources>
        <DataTemplate x:Key="DataTemplateNumbers">
            <TextBlock Text="{Binding StringFormat=\{0:D4\}}" FontFamily="Segoe UI Mono" Style="{StaticResource DefaultLabel}" />
        </DataTemplate>
    </UserControl.Resources>

    <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">

        <Grid x:Name="LayoutRoot" Background="{StaticResource ControlBackground}" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>
            <TextBox x:Name="leftLineNumbers" AcceptsReturn="True" FontFamily="Segoe UI Mono" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Disabled" IsReadOnly="True" Opacity="0.6"/>
            <TextBox x:Name="seqTextBox"  Grid.Column="1" Text="" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Disabled" AcceptsReturn="True" FontFamily="Segoe UI Mono" IsReadOnly="True" />
            <TextBox x:Name="rightLineNumbers" AcceptsReturn="True" Grid.Column="2" FontFamily="Segoe UI Mono" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Disabled" IsReadOnly="True" Opacity="0.6"/>
        </Grid>
    </ScrollViewer>
</UserControl>
